package part1;

public abstract class AbstractHouse {
    public abstract void buildBasic(); // 打地基
    public abstract void buildWalls(); // 砌墙
    public abstract void buildRoofed(); // 封顶

    public void build() { // 构建一个房子
        buildBasic();
        buildWalls();
        buildRoofed();
    }
}
